package cn.kshost.zqyg.client.order;

import cn.kshost.zqyg.model.entity.order.OrderInfo;
import cn.kshost.zqyg.model.vo.common.Result;
import cn.kshost.zqyg.model.vo.common.ResultCodeEnum;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "service-order",path = "/api/order/orderInfo/auth")
public interface OrderFeign {
    @GetMapping("/getOrderInfoByOrderNo/{orderNo}")
    Result<OrderInfo> getOrderInfoByOrderNo(@PathVariable Long orderNo);

    @GetMapping("/updateOrderStatus/{orderNo}/{payType}")
    Result updateOrderStatus(@PathVariable("orderNo") String orderNo, @PathVariable("payType") int payType);
}
